package com.example.gc.webredisgc.service;

import org.springframework.stereotype.Service;

/**
 * @author sjw
 * @className TenantContextService
 * @date 2021/9/26 15:04
 * @description: TODO
 */

@Service
public class TenantContextService {
    public String getIndex(){
        String indexName="att_common_bussiness_attendance";
        if(System.currentTimeMillis()%2==1){
            indexName="att_common_bussiness_attendance1";
        }
        System.out.println(indexName);
        return indexName;
    }
}
